package com.zwh.service.impl;

import ch.qos.logback.core.db.dialect.DBUtil;
import com.zwh.entity.MybatisUser;
import com.zwh.vo.MybatisUserVO;
import com.zwh.mapper.MybatisUserMapper;
import com.zwh.service.IMybatisUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.HashMap;
import java.util.Map;

/**
 *  控制器
 *
 * @author 
 * @since 2024-04-13
 */
@Service
public class MybatisUserServiceImpl extends ServiceImpl<MybatisUserMapper, MybatisUser> implements IMybatisUserService {

	@Override
	public IPage<MybatisUserVO> selectMybatisUserPage(IPage<MybatisUserVO> page, MybatisUserVO mybatisUser) {
		return page.setRecords(baseMapper.selectMybatisUserPage(page, mybatisUser));
	}

	@Override
	public MybatisUser selectMybatisUser(MybatisUser mybatisUser) {
		Map<String,Object> param = new HashMap<>();
		param.put("mybatisUser",mybatisUser);
		return baseMapper.selectMybatisUser(param);
	}

}
